import axios from '@/utils/request'
export const getArticles = (id, timestamp) => {
  return axios({
    method: 'get',
    url: '/v1_0/articles',
    params: {
      channel_id: id,
      timestamp
    }
  })
}
/**
 * 处理不感兴趣的文章
 * @param {*} target
 * @returns
 */
export const disLikeArticle = target => {
  return axios({
    method: 'post',
    url: '/v1_0/article/dislikes',
    data: {
      target
    }
  })
}

export const report = (target, type) => {
  return axios({
    method: 'post',
    url: '/v1_0/article/reports',
    data: {
      target,
      type
    }
  })
}
